package cn.gqr.service;

import cn.gqr.entity.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


public interface CartService {

    //查询该用户全部购物车
    List<CartBook> findAll(int uid);

    //添加order
    Map<String,Object> addCart2Order(Order order,List<OrderItem> lst);

    //加入购物车
    Map<String,Object> addCart(Cart cart);

    //删除购物车
    int delCart(int id);

}
